package stud.aistar.service;

import org.apache.ibatis.annotations.Param;
import stud.aistar.entity.RegOffice;

import java.util.List;

/**
 * Created by Administrator on 2019/9/28.
 */
public interface IRegOfficeService {
    List<RegOffice> findAll();

    List<RegOffice> findByPatientId(Integer pid);

    List<RegOffice> findByDoctorId(Integer did);

    Integer findCount(@Param("doctorId") Integer did, @Param("timeId") Integer tid);

    void saveReg(RegOffice regOffice);

    void changeStatus(Integer id);

    void forgiveStatus(Integer id);

    RegOffice  findById(Integer id);

    void updateStatus(Integer id);

    void updateReg(RegOffice regOffice);

    RegOffice findOne(@Param("patientId")Integer pid,@Param("doctorId")Integer did ,@Param("timeId")Integer tid);

    List<RegOffice> findByUserId(Integer uid);

}
